import React, { Component, createRef } from 'react'
import FormControl from './component/FormControl'
import FormOutContol from './component/FormOutControl'
export default class App extends Component {
  render() {
    return (
      <div>
        {/* 两者区别，非受控组件使用defaulValue/ defaultChecked来实现表单的输入，并通过ref来监控表单的最新值 */}
        <h2>受控组件</h2>
        <FormControl/>

        <hr />

        <h2>非受控组件</h2>
        <FormOutContol/>

      </div>
    )
  }
}